package com.project.user.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.project.common.base.BaseEntity;

/**
 * 餐饮评价表 user_goods_remark
 *
 * @author administrator
 * @date 2021-02-26
 */
public class UserGoodsRemark extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    private Long id;
    /**
     * 订单编号
     */
    private Long orderId;
    /**
     * 餐饮编号
     */
    private Long goodsId;
    private String goodsName;
    /**
     * 用户编号
     */
    private Long userId;
    private String userName;
    /**
     * 星级
     */
    private Integer star;
    /**
     * 评价内容
     */
    private String msg;
    /**
     * 评价时间
     */
    private String createTime;
    private String imgUrl;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }

    public Long getGoodsId() {
        return goodsId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setStar(Integer star) {
        this.star = star;
    }

    public Integer getStar() {
        return star;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getMsg() {
        return msg;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getCreateTime() {
        return createTime;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("orderId", getOrderId())
                .append("goodsId", getGoodsId())
                .append("userId", getUserId())
                .append("star", getStar())
                .append("msg", getMsg())
                .append("createTime", getCreateTime())
                .toString();
    }

    public UserGoodsRemark() {
    }

    public UserGoodsRemark(Long orderId, Long goodsId, Long userId, Integer star, String msg) {
        this.orderId = orderId;
        this.goodsId = goodsId;
        this.userId = userId;
        this.star = star;
        this.msg = msg;
    }
}
